#ifndef _REG_MACRO_H
#define _REG_MACRO_H

	//***********************************************************/
	// reg_macro.h                                              */
	// Macro definitions to address microcontroller registers   */
	// Author: Sven Knutsson, Chalmers University of Technology */
	//          Dept. of Computer Science and Engineering       */
	//***********************************************************/
	
	//*****************************/
	// pointer to 8 bit registers */
	//*****************************/
	
	#define REG8(x) *((unsigned char *)(x))
	
	//******************************/
	// pointer to 16 bit registers */
	//******************************/
	
	#define REG16(x) *((unsigned short *)(x))
	
	//******************************/
	// pointer to 32 bit registers */
	//******************************/
	
	#define REG32(x) *((unsigned long *)(x))

#endif
